import request from '@/utils/request'



// page
export function getPage(query) {
  return request({
    url: 'system/bizFixedAssets/getPage',
    method: 'get',
    params: query
  })
}

// 资产详情
export function get(query) {
  return request({
    url: 'system/bizFixedAssets/getById/' + query,
    method: 'get'
  })
}

// 资产申请过的流程列表
export function listProcess(query) {
  return request({
    url: 'system/bizFixedAssets/listProcessById/' + query,
    method: 'get'
  })
}

// 新增
export function insert(data) {
    return request({
      url: 'system/bizFixedAssets/insert',
      method: 'post',
      data:data
    })
}

// 新增
export function edit(data) {
  return request({
    url: 'system/bizFixedAssets/edit',
    method: 'post',
    data:data
  })
}

//导出
export function exportAssets(data) {
  return request({
    url: "system/export/exportFixedAssets",
    method: "post",
    data,
    responseType: "blob",
  });
}

//保存导入数据
export function importSaveData(data) {
    return request({
        url: "system/bizFixedAssets/importSaveData",
        method: "post",
        data,
    });
}
